package com.ruoyi.book.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 推荐书籍对象 book
 * 
 * @author ruoyi
 * @date 2023-09-27
 */
public class Book extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 封面 */
    @Excel(name = "封面")
    private String image;

    /** 书籍名称 */
    @Excel(name = "书籍名称")
    private String title;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 推荐理由 */
    @Excel(name = "推荐理由")
    private String reason;

    /** 简介 */
    @Excel(name = "简介")
    private String description;

    /** 顺序 0为置顶 */
    @Excel(name = "顺序 0为置顶")
    private Long top;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setTop(Long top) 
    {
        this.top = top;
    }

    public Long getTop() 
    {
        return top;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("image", getImage())
            .append("title", getTitle())
            .append("author", getAuthor())
            .append("reason", getReason())
            .append("description", getDescription())
            .append("createTime", getCreateTime())
            .append("top", getTop())
            .toString();
    }
}
